import { RouteRecordRaw } from 'vue-router'

export default [
   {
      name: 'article',
      path: '/articel',
      component: () => import('../layout/article/index.vue'),
      children: [
         {
            path: '/article/preDetail',
            name: 'preDetail',
            component: () => import('../views/article/preDetail.vue'),
            meta: {
               auth: true
            }
         },
         {
            path: '/article/detail/:id',
            name: 'detail',
            component: () => import('../views/article/detail.vue')
         },
         {
            path: '/article/add',
            name: 'add',
            component: () => import('../views/article/add.vue'),
            meta: {
               auth: true
            }
         }
      ]
   }
] as RouteRecordRaw[]
